home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / IBPalettes / WWTCLKit / WWTTConnectorAgent.m < prev    next >
Encoding:
Text File  |  1995-03-22  |  846 b   |  44 lines

  1. /* ConnectorAgent.m
  2.  * Written By:  Thomas Burkholder
  3.  *
  4.  * You may freely copy, distribute, and reuse the code in this example.
  5.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  6.  * fitness for any particular use.
  7.  */
  8.  
  9. // name space protected for WavesWorld by the addition of the "WWTT" prefix
  10.  
  11. #import <apps/InterfaceBuilder.h>
  12. #import "WWTTConnectorAgent.h"
  13.  
  14. @implementation WWTTConnectorAgent
  15.  
  16. - subdirectoryFor:anObject sender:sender
  17. {
  18.     return nil;
  19. }
  20.  
  21. - (BOOL)isLeaf:anObject sender:sender
  22. {
  23.     return YES;
  24. }
  25.  
  26. - (const char *)displayStringFor:anObject sender:sender
  27. {
  28.     return [[anObject destination] name];
  29. }
  30.  
  31. - (int)compare:first with:second sender:sender
  32. {
  33.     // we don't want connectors to be ordered.
  34.     // therefore, the first < second.
  35.     return -1;
  36. }
  37.  
  38. - (const char *)titleOfColumn:(int)col
  39. {
  40.     return NULL;
  41. }
  42.  
  43. @end
  44.